var $elsArr = [].slice.call(document.querySelectorAll('.work'));

$elsArr.forEach(function($el) {
  $el.addEventListener('click', function() {
    document.location.href = $el.querySelector("a").href;
  });
});